#ifndef MATERIALEXCEPTION_H_
#define MATERIALEXCEPTION_H_

#include <exception>
#include <string>

class MaterialException: public std::exception{
private:
	std::string message;

	virtual const char* what()const throw(){
		return message.c_str();
	}
public:

	MaterialException(const std::string& error) : message(error){}
	virtual ~MaterialException()throw(){}
};

#endif /* MATERIALEXCEPTION_H_ */
